package designPattern.Decorator;

//装饰者的基类
public abstract class Decroator implements Drink  {
    private Drink drink; //要装饰的对象

    public Decroator(Drink drink) {
        this.drink = drink;
    }

    @Override
    public float cost() {
        return drink.cost();
    }

    @Override
    public String desc() {
      return  drink.desc();
    }
}